import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { regDirectives } from './helpers/directive'

import Antd from 'ant-design-vue'

import SpaceBetween from './components/SpaceBetween.vue'

// 引入全局样式
import './assets/styles/global.scss'
import 'ant-design-vue/dist/antd.css'

const app = createApp(App)

regDirectives(app)

app
  .use(store)
  .use(router)
  .use(Antd)
  .component('space-between', SpaceBetween)
  .mount('#app')
